package com.aigo.controller;

import com.aigo.common.service.facade.api.UserService;
import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletResponse;

/**
 * @Auther: Aaron
 * @Date: 2018/8/16 18:16
 * @Description:
 */
@Controller("user")
public class UserController {
    @Reference(version = "1.0.0")
    private UserService userService;

    @GetMapping("/hello.do")
    @ResponseBody
    public String test(){
        String msg = userService.hello("微服务");
        System.out.println(msg);
        return msg;
    }
}
